/*    */ package com.feeyin.radar.sys.dao.impl;
/*    */ 
/*    */ import com.feeyin.radar.commons.StringUtils;
/*    */ import com.feeyin.radar.sys.dao.SaleStageSetDAO;
/*    */ import com.feeyin.radar.sys.model.SaleStageSet;
/*    */ import java.util.List;
/*    */ import org.springframework.orm.ibatis.SqlMapClientTemplate;
/*    */ import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
/*    */ 
/*    */ public class SaleStageSetDAOImpl extends SqlMapClientDaoSupport
/*    */   implements SaleStageSetDAO
/*    */ {
/*    */   public List getSaleStages()
/*    */   {
/* 20 */     return getSqlMapClientTemplate().queryForList("getSaleStages");
/*    */   }
/*    */ 
/*    */   public SaleStageSet getSaleStageByStageCode(String stageCode) {
/* 24 */     if (StringUtils.isEmpty(stageCode)) return null;
/* 25 */     return (SaleStageSet)getSqlMapClientTemplate().queryForObject("getSaleStageByStageCode", stageCode);
/*    */   }
/*    */ 
/*    */   public boolean insertSaleStage(SaleStageSet saleStageSet) {
/* 29 */     Integer result = (Integer)getSqlMapClientTemplate().insert("insertSaleStage", saleStageSet);
/* 30 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean updateSaleStage(SaleStageSet saleStageSet)
/*    */   {
/* 35 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().update("updateSaleStage", saleStageSet));
/* 36 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean deleteSaleStage()
/*    */   {
/* 41 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().delete("deleteSaleStage"));
/* 42 */     return result != null;
/*    */   }
/*    */ }

/* Location:           C:\Users\e547415\MyProject\rone\WEB-INF\classes\
 * Qualified Name:     com.feeyin.radar.sys.dao.impl.SaleStageSetDAOImpl
 * JD-Core Version:    0.6.0
 */